home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
aclock
/
frmreg.frm
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1999-08-04
|
6KB
|
201 lines
VERSION 5.00
Begin VB.Form frmReg
BorderStyle = 1 'Fixed Single
Caption = "Registration of KF4ZPB Web Prowler"
ClientHeight = 2400
ClientLeft = 36
ClientTop = 324
ClientWidth = 6960
Icon = "frmReg.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2400
ScaleWidth = 6960
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton save
Caption = "Quit + Save"
Enabled = 0 'False
Height = 492
Left = 5760
MousePointer = 10 'Up Arrow
TabIndex = 9
Top = 1560
Width = 1092
End
Begin VB.TextBox Text2
Height = 288
Left = 1200
TabIndex = 3
Top = 480
Width = 5652
End
Begin VB.TextBox Text1
Height = 288
Left = 1200
TabIndex = 2
Top = 120
Width = 5652
End
Begin VB.CommandButton Quit
Caption = "Quit W/O Saving"
Height = 500
Left = 3360
MousePointer = 10 'Up Arrow
Style = 1 'Graphical
TabIndex = 0
Top = 1560
Width = 1092
End
Begin VB.CommandButton verify
Caption = "Verify Registration"
Height = 500
Left = 4560
MousePointer = 10 'Up Arrow
Style = 1 'Graphical
TabIndex = 5
Top = 1560
Width = 1092
End
Begin VB.CommandButton Command1
Caption = "Thank You"
Enabled = 0 'False
Height = 500
Left = 5760
MousePointer = 10 'Up Arrow
Style = 1 'Graphical
TabIndex = 10
Top = 1560
Visible = 0 'False
Width = 1092
End
Begin VB.Label Label10
Alignment = 1 'Right Justify
Caption = "
1999 Carroll Dearstone - KF4ZPB"
Height = 252
Left = 3720
TabIndex = 11
Top = 2160
Width = 3132
End
Begin VB.Label Label4
Caption = "Reg Code #2:"
Height = 252
Left = 120
TabIndex = 7
Top = 516
Width = 1092
End
Begin VB.Label Label3
Caption = "Reg Name #1:"
Height = 252
Left = 120
TabIndex = 6
Top = 156
Width = 1092
End
Begin VB.Label Label2
BackColor = &H80000012&
Caption = $"frmReg.frx":0BC2
ForeColor = &H000000FF&
Height = 612
Left = 120
TabIndex = 4
Top = 840
Width = 6732
End
Begin VB.Label Label1
BackColor = &H00FFFFFF&
Enabled = 0 'False
BeginProperty Font
Name = "Arial"
Size = 10.2
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 252
Left = 120
TabIndex = 1
Top = 120
Visible = 0 'False
Width = 6732
End
Begin VB.Label Label5
BackColor = &H00FFFFFF&
Enabled = 0 'False
BeginProperty Font
Name = "Arial"
Size = 10.2
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 252
Left = 120
TabIndex = 8
Top = 480
Visible = 0 'False
Width = 6732
End
Attribute VB_Name = "frmReg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
If GetSetting("WebProwlerReg", "Options", "Code1") <> "" Then
Command1.Enabled = True
Command1.Visible = True
save.Visible = False
Quit.Visible = False
verify.Visible = False
Text1.Visible = False
Text2.Visible = False
Label3.Visible = True
Label4.Visible = True
Label1.Visible = True
Label5.Visible = True
Label1.Caption = GetSetting("WebProwlerReg", "Options", "Name1")
Label5.Caption = GetSetting("WebProwlerReg", "Options", "Code1")
End If
End Sub
Private Sub save_Click()
SaveSetting "WebProwlerReg", "Options", "Name1", Label1.Caption
SaveSetting "WebProwlerReg", "Options", "Code1", Label5.Caption
MsgBox "Must refresh settings; Closing"
Unload Me
End Sub
Private Sub verify_Click()
If Text1.Text = "KF4ZPB Web Prowler User" And Text2.Text = "1d5a7o64491A" Then
Label1.Visible = True
Label1.Caption = "Registered to:KF4ZPB Web Prowler User"
Label5.Visible = True
Label5.Caption = "Registration #: 1d5a7o64491A"
save.Enabled = True
save.Visible = True
Text1.Enabled = False
Text1.Visible = False
Text2.Enabled = False
Text2.Visible = False
Label3.Visible = False
Label4.Visible = False
save.Enabled = True
save.Enabled = False
MsgBox "Sorry you have entered a wrong Registration Name and Code."
End If
End Sub
Private Sub Quit_Click()
Unload Me
End Sub